import {
  getSettle,
  saveDeliverySettings,
  backendOwnTakeList,
  saveOwnTake,
  getOwnTakeDetail,
  updateOwnTakeStatus,
  deleteOwnTake,
  getOwnTakeCount,
  getActiveOwnTakeList,
} from '@/services/Deliver'

export default () => {
  const GetSettle = (params: any) => {
    return getSettle(params)
  }

  const SaveDeliverySettings = (params: any) => {
    return saveDeliverySettings(params)
  }

  const GetBackendOwnTakeList = (params: any) => {
    return backendOwnTakeList(params)
  }

  const SaveOwnTake = (params: any) => {
    return saveOwnTake(params)
  }

  const GetOwnTakeDetail = (params: any) => {
    return getOwnTakeDetail(params)
  }

  const UpdateOwnTakeStatus = (params: any) => {
    return updateOwnTakeStatus(params)
  }

  const DeleteOwnTake = (params: any) => {
    return deleteOwnTake(params)
  }

  const GetOwnTakeCount = () => {
    return getOwnTakeCount()
  }

  const GetActiveOwnTakeList = () => {
    return getActiveOwnTakeList()
  }

  return {
    GetSettle,
    SaveDeliverySettings,
    GetBackendOwnTakeList,
    SaveOwnTake,
    GetOwnTakeDetail,
    UpdateOwnTakeStatus,
    DeleteOwnTake,
    GetOwnTakeCount,
    GetActiveOwnTakeList,
  }
}
